using System;
using System.Data;
using System.Collections.Generic;
using System.ServiceModel;
using eTMS.DAO;
namespace eTMS.Services{
	/********************************BEGIN CaHocServiceBase****************************************/
	///<summary>
	/// <para>Author: Auto generated class by CSharp Code Generator v2.0</para>
	/// <para>Date:07/10/2010 39:07:23</para>
	/// <para>Class Name: CaHocServiceBase</para>
	/// <para>Description: </para>
	///</summary>

	
	public partial class CaHocService : ICaHocService{


		#region Select functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: SelectOne</para>
		/// <para>Input: CaHoc_ID</para>
		/// <para>Output: CaHocEntity</para>
		///</summary>
		public CaHocEntity SelectOne(int CaHoc_ID){
			CaHocDAO dao = new CaHocDAO();
			return dao.SelectOne(CaHoc_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: SelectOneByMaCa</para>
		/// <para>Input: MaCa</para>
		/// <para>Output: CaHocEntity</para>
		///</summary>
		public CaHocEntity SelectOneByMaCa(string MaCa){
			CaHocDAO dao = new CaHocDAO();
			return dao.SelectOneByMaCa(MaCa);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of CaHocEntity</para>
		///</summary>
		public List<CaHocEntity> SelectAll(){
			CaHocDAO dao = new CaHocDAO();
			return dao.SelectAll();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDS(){
			CaHocDAO dao = new CaHocDAO();
			return dao.SelectAllDS();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of CaHocEntity</para>
		///</summary>
		public List<CaHocEntity> SelectAllFilter(string strFilter){
			CaHocDAO dao = new CaHocDAO();
			return dao.SelectAllFilter(strFilter);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDSFilter(string strFilter){
			CaHocDAO dao = new CaHocDAO();
			return dao.SelectAllDSFilter(strFilter);
		}
		#endregion

		#region Insert functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: Save</para>
		/// <para>Input: CaHocEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Save(CaHocEntity o){
			CaHocDAO dao = new CaHocDAO();
			return dao.Save(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: Save</para>
		/// <para>Input: CaHocEntity</para>
		/// <para>Output: CaHocEntity</para>
		///</summary>
		public CaHocEntity SaveRet(CaHocEntity o){
			CaHocDAO dao = new CaHocDAO();
			dao.Save(o);
			return o;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: SaveList</para>
		/// <para>Input: List of CaHocEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void SaveList(List<CaHocEntity> list){
			CaHocDAO dao = new CaHocDAO();
			dao.SaveList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: SaveListRet</para>
		/// <para>Input: List of CaHocEntity</para>
		/// <para>Output: List of CaHocEntity</para>
		///</summary>
		public List<CaHocEntity> SaveListRet(List<CaHocEntity> list){
			this.SaveList(list);
			return list;
		}
		#endregion

		#region Update functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: Update</para>
		/// <para>Input: CaHocEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Update(CaHocEntity o){
			CaHocDAO dao = new CaHocDAO();
			return dao.Update(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: UpdateList</para>
		/// <para>Input: List of CaHocEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void UpdateList(List<CaHocEntity> list){
			CaHocDAO dao = new CaHocDAO();
			dao.UpdateList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: UpdateMaCa</para>
		/// <para>Input: NewMaCa,CaHoc_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateMaCa(string NewMaCa,int CaHoc_ID){
			CaHocDAO dao = new CaHocDAO();
			return dao.UpdateMaCa(NewMaCa,CaHoc_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: UpdateTenCa</para>
		/// <para>Input: NewTenCa,CaHoc_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateTenCa(string NewTenCa,int CaHoc_ID){
			CaHocDAO dao = new CaHocDAO();
			return dao.UpdateTenCa(NewTenCa,CaHoc_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: UpdateGhiChu</para>
		/// <para>Input: NewGhiChu,CaHoc_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateGhiChu(string NewGhiChu,int CaHoc_ID){
			CaHocDAO dao = new CaHocDAO();
			return dao.UpdateGhiChu(NewGhiChu,CaHoc_ID);
		}
		#endregion

		#region Delete functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: Delete</para>
		/// <para>Input: CaHocEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Delete(CaHocEntity o){
			CaHocDAO dao = new CaHocDAO();
			return dao.Delete(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: DeleteByID</para>
		/// <para>Input: CaHoc_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool DeleteByID(int CaHoc_ID){
			CaHocDAO dao = new CaHocDAO();
			return dao.DeleteByID(CaHoc_ID);
		}
		#endregion

		#region Select,delete by CaHoc_ID functions
		#endregion
	}
	/*****************************************************************************************************/
	/**********************************END CaHocWebServiceBase*****************************************/
	/*****************************************************************************************************/
}

